﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ComApp
{
    public class DelegateDisposable : IDisposable
    {
        public Action CloseAction { get; set; }

        public void Dispose()
        {
            if (this.CloseAction != null)
                this.CloseAction();
        }
    }
}
